package org.liuyunfeng.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: TanJingyu
 * @create: 2022-06-22 15:58
 **/
@RestController
@RequestMapping("/logger")
public class LoggerController {
    private final Logger logger = LoggerFactory.getLogger(LoggerController.class);

    @GetMapping
    public String logger() {
        logger.info("船到桥头自然直");
        logger.error("error这是啊");
        return "|";
    }
}

    